namespace RebelStar.Engine.Units.Equipments.Weapons
{
    public class Weapon : Equipment
    {
        private readonly int power;
        private readonly float accuracy;

        public Weapon(string name, int power, float accuracy, int snapshotPoints, int aimedshotPoints)
            : base(name)
        {
            this.power = power;
            this.accuracy = accuracy;

            base.Actions.Add(new Action("Snap Shot", snapshotPoints));
            base.Actions.Add(new Action("Aimed Shot", aimedshotPoints));
        }

        public int Power
        {
            get { return power; }
        }
        public float Accuracy
        {
            get { return accuracy; }
        }

        public void Fire(Action action)
        {
            base.DoAction(action);
        }
    }
}